<template>
	<view class="main" :style="{paddingBottom:(getSafeBottom )+'px'}">
		<navbar title="关于我们"></navbar>
		<view class="content" :style="{paddingTop:(getStateHeight + getNavbar  ) + 'px'}">
			<view class="info">
				<view class="info-logo">
					<image :src="baseImage + info.logo" mode="" v-if="info.logo"></image>
					<image :src="imgUrl + 'logo-white.png'" mode="" v-else></image>
				</view>
				<view class="info-title">
					{{info.title}}
				</view>
				<view class="info-version">
					version {{info.version}}
				</view>
			</view>
			<view class="item-box">
				<!-- <view class="item line"  @click="toUrl('/pages/ucenter/common/img?str=businessLicense')">
					<view class="item-title">
						营业执照
					</view>
					<view class="item-more">
						<van-icon name="arrow" size="16" color="#666666" />
					</view>
				</view>
				<view class="item line"  @click="toUrl('/pages/ucenter/common/img?str=hrZheng')">
					<view class="item-title">
						人力资源许可证
					</view>
					<view class="item-more">
						<van-icon name="arrow" size="16" color="#666666" />
					</view>
				</view> -->
				<view class="item textarea">
					<view class="item-contact">
						联系我们
					</view>
					<view class="item-title">
						邮箱：{{info.email}}					</view>
					<view class="item-title">
						联系地址：{{info.addr}}
					</view>
					<view class="item-title">
						联系电话：{{info.tel}}
					</view>
				</view>
			</view>
		</view>
		<view class="main-bj">

		</view>

	</view>
</template>

<script>
	import {
		mapGetters,
		mapState
	} from 'vuex';
	import Navbar from '@/components/Navbar.vue';
	import {getUsual} from "@/core/web-api/common.js"
	export default {
		data() {
			return {
				info:{
					title:"灵活聘",
					version:"1.0.0",
					email:"xxxx@zflink.com",
					address:"重庆高新兴xx街道xx园区2xx",
					tel:"023-111221121"
				}
			}
		},
		methods: {
			toUrl(url){
				uni.navigateTo({
					url
				})
			},
			getDetail(){
				getUsual().then(res=>{
					if(res.code==20000){
						this.info = res.data.usual
						this.$store.commit("setUsual",res.data.usual)
					}
				})
			},
		},
		computed: {
			...mapGetters(['getNavbar', 'getStateHeight', 'getSafeBottom']),
			...mapState(['baseImage','imgUrl'])
		},
		components:{
			Navbar
		},
		created() {
			this.getDetail();
		}
	}
</script>

<style scoped lang="less">
	.main {
		width: 100%;
		padding: 0 30upx;
		box-sizing: border-box;

		&-bj {
			width: 100%;
			height: 50vh;
			position: fixed;
			left: 0;
			top: 0;
			z-index: -1;
			background: linear-gradient(to bottom, #bdccfb, #f5f5f5);
		}
	}
	
	.content{
		margin-top: 50upx;
	}
	.info{
		display: flex;
		flex-direction: column;
		align-items: center;
		&-logo{
			width: 119upx;
			height: 119upx;
			border-radius: 50%;
			image{
				width: 119upx;
				height: 119upx;
				border-radius: 50%;
			}
		}
		&-title{
			margin-top: 15upx;
			font-size: 30upx;
			color: #000000;
		}
		&-version{
			font-size: 26upx;
			color: #767676;
			margin-top: 10upx;
		}
		
	}
	.item{
		&-box{
			width: 100%;
			margin-top: 40upx;
		}
		width: 100%;
		box-shadow: 3upx 0 7upx rgba(220, 220, 220, .35);
		border-radius: 10upx;
		padding:30upx;
		box-sizing: border-box;
		margin-bottom: 20upx;
		background-color: #fff;
		&.line{
			display: flex;
			justify-content: space-between;
			padding:15upx 30upx;
		}
		&-title{
			font-size: 26upx;
			color: #666666;
		}
		&-contact{
			font-size: 26upx;
			color: #5474fd;
			margin-bottom: 20upx;
		}
	}
	.textarea{
		.item-title{
			margin-bottom: 20upx;
		}
	}

	
</style>